﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CCPersonnel
/// </summary>
/// 
namespace CE.CreditCard
{
    public class CCPersonnel
    {
        //Applicant Info field name
        private Int64 _ccpersonnelid;
        private Int64 _ccarid;
        private string _ccsalutation;
        private string _ccfirstname;
        private string _ccsurname;
        private string _ccnameofappear;
        private string _ccnationality;
        private string _ccidtype;
        private string _ccidnumber;
        private DateTime _ccdob;
        private char _ccgender;
        private string _ccmaritalstatus;
        private Int32 _ccnoofdepent;
        private string _cchighedu;
        private string _ccemail;
        private string _ccmobileno;
        private string _cchomephone;
        private string _ccofficephone;
        private string _ccunitno;
        private string _cchomeno;
        private string _ccstreet;
        private string _cccountry;
        private string _ccpostal;
        private Int32 _ccyrsofthere;
        private string _ccemrcenyno;
        private string _ccrelation;
        private bool _ccmailing;
        private bool _ccsupplement;
        private Int64 _refceuserid;
        private Int64 _vieweddetailid;
        //Common field
        private bool _ccstatus;
        private DateTime _cccreateddate;
        private DateTime _ccmodifieddate;
        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;

        public CCPersonnel()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        public Int64 CCPersonnelId
        {
            get { return _ccpersonnelid; }
            set { _ccpersonnelid = value; }
        }

        public Int64 CCARId
        {
            get { return _ccarid; }
            set { _ccarid = value; }
        }

        public string CCSalutation
        {
            get { return _ccsalutation; }
            set { _ccsalutation = value; }
        }

        public string CCFirstName
        {
            get { return _ccfirstname; }
            set { _ccfirstname = value; }
        }

        public string CCSurName
        {
            get { return _ccsurname; }
            set { _ccsurname = value; }
        }

        public string CCNameOfAppear
        {
            get { return _ccnameofappear; }
            set { _ccnameofappear = value; }
        }

        public string CCNationality
        {
            get { return _ccnationality; }
            set { _ccnationality = value; }
        }

        public DateTime CCDOB
        {
            get { return _ccdob; }
            set { _ccdob = value; }
        }

        public string CCIdType
        {
            get { return _ccidtype; }
            set { _ccidtype = value; }
        }

        public string CCIdNo
        {
            get { return _ccidnumber; }
            set { _ccidnumber = value; }
        }

        public char CCGender
        {
            get { return _ccgender; }
            set { _ccgender = value; }
        }

        public string CCMaritalStatus
        {
            get { return _ccmaritalstatus; }
            set { _ccmaritalstatus = value; }
        }

        public Int32 CCNoOfDepent
        {
            get { return _ccnoofdepent; }
            set { _ccnoofdepent = value; }
        }

        public string CCHighEdu
        {
            get { return _cchighedu; }
            set { _cchighedu = value; }
        }
 
        public string CCEmail
        {
            get { return _ccemail; }
            set { _ccemail = value; }
        }
 
        public string CCMobileNo
        {
            get { return _ccmobileno; }
            set { _ccmobileno = value; }
        }

        public string CCHomePhone
        {
            get { return _cchomephone; }
            set { _cchomephone = value; }
        }

        public string CCOfficePhone
        {
            get { return _ccofficephone; }
            set { _ccofficephone = value; }
        }

        public string CCUnitNo
        {
            get { return _ccunitno; }
            set { _ccunitno = value; }
        }

        public string CCHomeNo
        {
            get { return _cchomeno; }
            set { _cchomeno = value; }
        }

        public string CCStreetName
        {
            get { return _ccstreet; }
            set { _ccstreet = value; }
        }

        public string CCCountry
        {
            get { return _cccountry; }
            set { _cccountry = value; }
        }

        public string CCPostalCode
        {
            get { return _ccpostal; }
            set { _ccpostal = value; }
        }

        public Int32 CCYearsofThere
        {
            get { return _ccyrsofthere; }
            set { _ccyrsofthere = value; }
        }

        public string CCEmergencyNo
        {
            get { return _ccemrcenyno; }
            set { _ccemrcenyno = value; }
        }

        public string CCRelation
        {
            get { return _ccrelation; }
            set { _ccrelation = value; }
        }

        public bool CCMailing
        {
            get { return _ccmailing; }
            set { _ccmailing = value; }
        }

        public bool CCSupplementary
        {
            get { return _ccsupplement; }
            set { _ccsupplement = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool CCStatus
        {
            get { return _ccstatus; }
            set { _ccstatus = value; }
        }

        public DateTime CCCreatedDate
        {
            get { return _cccreateddate; }
            set { _cccreateddate = value; }
        }

        public DateTime CCModifiedDate
        {
            get { return _ccmodifieddate; }
            set { _ccmodifieddate = value; }
        }

        public string CCInfo1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string CCInfo2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string CCInfo3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string CCInfo4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string CCInfo5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public void ClearFields()
        {

            //Applicant Info field name
            _ccpersonnelid = 0;
            _ccarid = 0;
            //_ccid = 0;
            _ccsalutation = "";
            _ccfirstname = "";
            _ccsurname = "";
            _ccnameofappear = "";
            _ccnationality = "";
            _ccdob = new DateTime();
            _ccdob = CE.Global.General.GetUTCDateTime();
            _ccidtype = "";
            _ccidnumber = "";
            _ccgender = 'N'; 
            _ccmaritalstatus = "";
            _ccnoofdepent = 0;
            _cchighedu = "";
            _ccemail = "";
            _ccmobileno = "";
            _cchomephone = "";
            _ccofficephone = "";
            _ccunitno = "";
            _cchomeno = "";
            _ccstreet = "";
            _cccountry = "";
            _ccpostal = "";
            _ccyrsofthere = 0;
            _ccemrcenyno = "";
            _ccrelation = "";
            _ccmailing = false;
            _ccsupplement = false;
            _refceuserid = 0;
            _vieweddetailid = 0;
            //extra field for future extend
            _ccstatus = false;
            _cccreateddate = new DateTime();
            _ccmodifieddate = new DateTime();
            _cccreateddate = CE.Global.General.GetUTCDateTime();
            _ccmodifieddate = CE.Global.General.GetUTCDateTime();
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
        }
    }

}